home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 March / Chip_2002-03_cd1.bin / zkuste / delphi / kolekce / d3456 / gmprintsuite_eval.exe / {app} / GmConst.pas next >
Pascal/Delphi Source File  |  2002-01-04  |  5KB  |  158 lines

  1. unit GmConst;
  2.  
  3. interface
  4.  
  5. uses Messages;
  6.  
  7. const
  8.   SUITE_VERSION           = 2.31;
  9.  
  10.   DEFAULT_FONT = 'Arial';
  11.  
  12.   // cursor values...
  13.   crZoomIn   = 101;
  14.   crZoomOut  = 102;
  15.  
  16.   // messages...
  17.   //CM_UPDATE_THUMBNAILS      = WM_USER+6000;
  18.   //CM_GRID_PRINTER           = WM_USER+6001;
  19.   GM_PAGE_CHANGED             = WM_USER+6002;
  20.   GM_NUMPAGES_CHANGED         = WM_USER+6003;
  21.   GM_MULTIPAGE_CHANGED        = WM_USER+6004;
  22.   GM_ORIENTATION_CHANGED      = WM_USER+6005;
  23.   GM_PAGE_UPDATED             = WM_USER+6006;
  24.   GM_PAGE_ORIENTATION_CHANGED = WM_USER+6007;
  25.   GM_PREVIEW_CLEARED          = WM_USER+6008;
  26.   GM_PREVIEW_UPDATED          = WM_USER+6009;
  27.   CM_PRINTER_CHANGED          = WM_USER+6010;
  28.   GM_PAPER_SIZE_CHANGED       = WM_USER+6011;
  29.   GM_LOADING                  = WM_USER+6012;
  30.  
  31.   GM_SAVE_PEN                 = WM_USER+6013;
  32.   GM_RESTORE_PEN              = WM_USER+6014;
  33.   GM_SAVE_BRUSH               = WM_USER+6015;
  34.   GM_RESTORE_BRUSH            = WM_USER+6016;
  35.  
  36.   //CM_PAGESIZE_CHANGED       = WM_USER+6006;
  37.   //CM_PRINTER_CHANGED        = WM_USER+6007;
  38.   //CM_PREVIEW_UPDATED        = WM_USER+6008;
  39.   //CM_PRINTER_BIN_CHANGED    = WM_USER+6009;
  40.   //CM_USER_MARGINS_CHANGED   = WM_USER+6010;
  41.  
  42.   //GM_REGISTER_COMPONENT       = WM_USER+6011;
  43.   //GM_UNREGISTER_COMPONENT     = WM_USER+6012;
  44.  
  45.   // needed for backward compatability...
  46.   C_OBJECT    = 10;
  47.   C_OBJECT_ID = 10.01;
  48.   C_OBJECT_PAGE           = 10.02;
  49.   C_OBJECT_X1             = 10.03;
  50.   C_OBJECT_Y1             = 10.04;
  51.   C_OBJECT_X2             = 10.05;
  52.   C_OBJECT_Y2             = 10.06;
  53.   C_OBJECT_X3             = 10.07;
  54.   C_OBJECT_Y3             = 10.08;
  55.   C_OBJECT_X4             = 10.09;
  56.   C_OBJECT_Y4             = 10.10;
  57.   C_OBJECT_DATA1          = 10.50;
  58.   C_OBJECT_LINE_TYPE      = 11.00;
  59.   
  60.   C_NEW_PAGE              = 1;
  61.   C_PAGE_SETUP            = 2;
  62.   C_PAGE_WIDTH            = 2.01;
  63.   C_PAGE_HEIGHT           = 2.02;
  64.   C_PAPER_SIZE            = 2.03;
  65.   C_ORIENTATION           = 2.04;
  66.  
  67.   C_MARGIN                = 3;
  68.   C_MARGIN_LEFT           = 3.01;
  69.   C_MARGIN_TOP            = 3.02;
  70.   C_MARGIN_RIGHT          = 3.03;
  71.   C_MARGIN_BOTTOM         = 3.04;
  72.   C_MARGIN_VISIBLE        = 3.05;
  73.   C_PRINT_MARGIN_VISIBLE  = 3.06;
  74.   C_MARGINS_PEN_1         = 3.07;
  75.   C_MARGINS_PEN_2         = 3.08;
  76.  
  77.   C_SHADOW                = 4;
  78.   C_SHADOW_COLOR          = 4.01;
  79.   C_SHADOW_WIDTH          = 4.02;
  80.   C_SHADOW_VISIBLE        = 4.03;
  81.  
  82.   C_DOCUMENT              = 5;
  83.   C_DOCUMENT_CREATED      = 5.01;
  84.   C_DOCUMENT_NUMPAGES     = 5.02;
  85.  
  86.   C_HEADER                = 6;
  87.   C_HEADER_ALIGN          = 6.01;
  88.   C_HEADER_SHOWLINE       = 6.03;
  89.   C_HEADER_VISIBLE        = 6.04;
  90.  
  91.   C_FOOTER                = 7;
  92.   C_FOOTER_ALIGN          = 7.01;
  93.   C_FOOTER_SHOWLINE       = 7.03;
  94.   C_FOOTER_VISIBLE        = 7.04;
  95.  
  96.   // object constants...
  97.   GM_TEXT_ID        = 1;
  98.   GM_LINE_ID        = 2;
  99.   GM_ELLIPSE_ID     = 3;
  100.   GM_RECTANGLE_ID   = 4;
  101.   GM_ROUNDRECT_ID   = 5;
  102.   GM_TEXTBOX_ID     = 6;
  103.   GM_POLYGON_ID     = 7;
  104.   GM_POLYLINE_ID    = 8;
  105.   GM_GRAPHIC_ID     = 9;
  106.   GM_ARC_ID         = 10;
  107.   GM_CHORD_ID       = 11;
  108.   GM_PIE_ID         = 12;
  109.   GM_POLYBEZIER_ID  = 13;
  110.   GM_BEGIN_PATH     = 16;
  111.   GM_END_PATH       = 17;
  112.   GM_CLOSEFIGURE    = 18;
  113.   GM_POLYLINETO_ID  = 19;
  114.   GM_POLYBEZIERTO_ID= 20;
  115.   GM_FILLRECT_ID    = 21;
  116.  
  117.   C_EXTENDED        = 1000;
  118.   C_INTEGER         = 1001;
  119.   C_STRING          = 1002;
  120.   C_BRUSH           = 1003;
  121.   C_FONT            = 1004;
  122.   C_PEN             = 1005;
  123.  
  124.  
  125.   C_BRUSH_COLOR           = 20.00;
  126.   C_BRUSH_STYLE           = 20.01;
  127.   C_BRUSH_BITMAP          = 20.02;
  128.  
  129.   C_FONT_NAME             = 30.00;
  130.   C_FONT_SIZE             = 30.01;
  131.   C_FONT_STYLE            = 30.02;
  132.   C_FONT_COLOR            = 30.03;
  133.   C_FONT_PPI              = 30.04;
  134.   C_FONT_ANGLE            = 30.05;
  135.  
  136.   C_PEN_COLOR             = 40.00;
  137.   C_PEN_STYLE             = 40.01;
  138.   C_PEN_WIDTH             = 40.02;
  139.   C_PEN_MODE              = 40.03;
  140.  
  141.   C_CAPTION               = 50.00;
  142.   C_CAPTION_LEFT          = 50.01;
  143.   C_CAPTION_CENTER        = 50.02;
  144.   C_CAPTION_RIGHT         = 50.03; 
  145.   C_ALIGNMENT             = 51.00;
  146.   C_VERT_ALIGNMENT        = 51.01;
  147.  
  148.     C_BITMAP              = 70;
  149.   C_METAFILE              = 71;
  150.   C_METAFILE_AS_BITMAP    = 72;
  151.  
  152.   GM_UPDATE_PREVIEW       = 10000;
  153.   GM_PAGESIZE_CHANGED     = 10001;
  154.   GM_USER_MARGINS_CHANGED = 10002;
  155. implementation
  156.  
  157. end.
  158.